/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-27
 * Time: 23:30
 */
/**
 * 企鹅类：继承Animal，实现Swimmable和Runnable接口
 * - 同时具备游泳和奔跑能力
 */
class Penguin extends Animal implements Swimmable, Runnable {
    public Penguin(String name) {
        super(name);
    }

    @Override
    public void swim() {
        System.out.println(getName() + "用翅膀划水游泳！");
    }

    @Override
    public void run() {
        System.out.println(getName() + "在冰面上笨拙地滑行！");
    }
}
